<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./src/video-js.css">
  <style>
    #my-player {
      width: 800px;
      height: 600px;
      margin: 0 auto;
    }
  </style>
</head>

<body>
  <video id="my-player" class="video-js vjs-default-skin" controls preload="none">
    <source src="" type="video/mp4">
  </video>
  <script src="./src/video.js"></script>
  <script>
    window.onload = function () {
      const src = location.search.split('=')[1];
      document.querySelector("source").src = src;
      videojs('my-player', {
        playbackRates: [0.5, 1, 1.2,1.3,1.4,1.5,1.6 , 2,2.1,2.2,2.5]
      });
    }
  </script>
</body>

</html>